tests/gpg: fix the check of GPG support
authorDenis Pynkin <denis.pynkin@collabora.com>
Mon, 29 Jul 2019 23:16:57 +0000 (02:16 +0300)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 1 Aug 2019 02:06:47 +0000 (02:06 +0000)
commit453ce83379364172206945fad78a3cbc2ae51df5
treef8be3da5c00be005bd42144d7d234ab0a119de73
parent8322e77a88d65f894698651caa7757cfd5c6edfa
tests/gpg: fix the check of GPG support

Shell function `has_gpgme` shouldn't exit if GPG support is not detected
since it stop any test with error.

Added function `skip_without_gpgme` to skip the whole test if it is
useless without GPG support

Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
Closes: #1889
Approved by: cgwalters
tests/libtest.sh